package com.sfac.javaSpringBoot.modules.account.service;

import com.github.pagehelper.PageInfo;
import com.sfac.javaSpringBoot.modules.account.entity.User;
import com.sfac.javaSpringBoot.modules.common.entity.Result;
import com.sfac.javaSpringBoot.modules.common.entity.Search;

public interface UserService {

    Result<User> insertUser(User user);

    Result<User> updateUser(User user);

    User getUserById(int id);

    Result<User> getUserByUserNameAndPassword(String userName, String password);

    Result<Object> deleteUserById(int id);

    PageInfo<User> getUsersBySearch(Search search);
}